package com.bestow.basic.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.bestow.common.annotation.Excel;
import com.bestow.common.core.domain.BaseEntity;

/**
 * 数据来源字段对象 hls_db_data_source_column
 *
 * @author liliu
 * @date 2022-12-10
 */
@TableName("hls_db_data_source_column" )
public class HlsDbDataSourceColumn extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键PK
     */
    @TableId(value = "data_source_column_id" )
    private Long dataSourceColumnId;

    /**
     * 数据源id
     */
    @Excel(name = "数据源id" )
    private Long dataSourceId;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}" , readConverterExp = "$column.readConverterExp()" )
    private Long dataSourceTbId;

    /**
     * 字段名
     */
    @Excel(name = "字段名" )
    private String columnName;

    /**
     * 字段类型
     */
    @Excel(name = "字段类型" )
    private String columnType;

    /**
     * 字段别名
     */
    @Excel(name = "字段别名" )
    private String aliasName;

    /**
     * 描述
     */
    @Excel(name = "描述" )
    private String description;

    /**
     * 是否启用
     */
    @Excel(name = "是否启用" )
    private String enabledFlag;

    public void setDataSourceColumnId(Long dataSourceColumnId) {
        this.dataSourceColumnId = dataSourceColumnId;
    }

    public Long getDataSourceColumnId() {
        return dataSourceColumnId;
    }

    public void setDataSourceId(Long dataSourceId) {
        this.dataSourceId = dataSourceId;
    }

    public Long getDataSourceId() {
        return dataSourceId;
    }

    public void setDataSourceTbId(Long dataSourceTbId) {
        this.dataSourceTbId = dataSourceTbId;
    }

    public Long getDataSourceTbId() {
        return dataSourceTbId;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }

    public String getAliasName() {
        return aliasName;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setEnabledFlag(String enabledFlag) {
        this.enabledFlag = enabledFlag;
    }

    public String getEnabledFlag() {
        return enabledFlag;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("dataSourceColumnId" , getDataSourceColumnId())
                .append("dataSourceId" , getDataSourceId())
                .append("dataSourceTbId" , getDataSourceTbId())
                .append("columnName" , getColumnName())
                .append("columnType" , getColumnType())
                .append("aliasName" , getAliasName())
                .append("description" , getDescription())
                .append("enabledFlag" , getEnabledFlag())
                .append("createBy" , getCreateBy())
                .append("createTime" , getCreateTime())
                .append("updateBy" , getUpdateBy())
                .append("updateTime" , getUpdateTime())
                .toString();
    }
}
